﻿using System;
using System.Runtime.Serialization;

namespace sp2google.common.Entities.Calendar
{
    public class CalendarItem : ISerializable   
    {
        public string Title { get; set; }
        public string Description { get; set; }
        public DateTime Start { get; set; }
        public DateTime End { get; set; }

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue("Title", Title);
            info.AddValue("Description", Description);
            info.AddValue("Start", Start);
            info.AddValue("End", End);
        }
    }
}
